
<script type="text/javascript">
    $(document).ready(function(){
        $('#carousel').elastislide();
    });
</script>
<?php
    if($template->get('aProducts'))
    {
        echo '<div style="clear:both;"></div>';
        echo '<ul id="carousel" class="elastislide-list">';
        foreach($template->get('aProducts') as $aProduct)
        {
            echo '<li><a href="'.$aProduct['uri'].'"><img src="'.URL::getLink('upload/'.$aProduct['image']).'"/></a></li>';
        }
        echo '</ul>';
        echo '<div style="clear:both;"></div>';
    }
?>